package pile.pay.service;



import pile.pay.config.wxConfig.WxPayEntity;
import pile.pay.config.wxConfig.WxRefundEntity;
import pile.pay.entity.ResponseResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.security.SignatureException;
import java.util.Map;

public interface IWxPayService {
    ResponseResult transactions(WxPayEntity wxPayEntity) throws IOException, NoSuchAlgorithmException, SignatureException, InvalidKeyException;

    Map<String, String> payNotify(HttpServletRequest request, HttpServletResponse response);

    Map<String, String> refundNotify(HttpServletRequest request, HttpServletResponse response);

    ResponseResult  refunds() ;
}
